<?php if (!defined('app_fox')) exit('No direct script access allowed');?>
<div class="ad-all clearfix hidden-xs hidden-sm">
	<div id="qiandao">
		<div class="pull-right" style="color:#999;">
		<b><?php _e('站内统计'); ?></b>
		<span style="padding:0 0 0 10px;"><?php _e('会员'); ?>：<?php echo $this->users_count; ?> / <?php _e('激活'); ?>：<?php echo $this->users_valid_email_count; ?></span>
		<span style="padding:0 0 0 10px;"><?php _e('交流'); ?>：<?php echo $this->question_count; ?></span>
		<span style="padding:0 0 0 10px;"><?php _e('文章'); ?>：<?php echo $this->article_count; ?></span>
		</div>
		<h2 class="hidden-xs"><i class="icon icon-users"></i> <?php _e('活跃榜'); ?></h2>
		<div class="qiandaobox hidden-xs hidden-sm">
		<?php if (is_array($this->top_hot_users)) { 
		$ct=FOX_users_num-count($this->top_hot_users);?>
		<?php foreach($this->top_hot_users AS $key => $val) {
		if($key==0){?>	
		<dt class="pull-left">
				<a href="people/<?php echo $val['url_token']; ?>" class="aw-user-name" title="<?php echo $val['user_name']; ?>" data-id="<?php echo $val['uid']; ?>" rel="nofollow"><img alt="<?php echo $val['user_name']; ?>" src="<?php echo get_avatar_url($val['uid'], 'max'); ?>" /></a>
		</dt>
		<?php }else{ ?>
			<dd class="pull-left xboxs">
				<a href="people/<?php echo $val['url_token']; ?>" class="aw-user-name" title="<?php echo $val['user_name']; ?>" data-id="<?php echo $val['uid']; ?>" rel="nofollow"><img alt="<?php echo $val['user_name']; ?>" src="<?php echo get_avatar_url($val['uid'], 'mid'); ?>" /></a>
			</dd>							
		<?php }} 
		for ($i = 0; $i < $ct; $i++) {?>
			<dd class="pull-left xboxs">
			<?php if (!$this->user_id) { 
			if (get_setting('url_rewrite_enable') == 'Y') { 
			$qq_url=base_url();
				if(false===strpos(strtolower($qq_url), 'http://www.')){
					$qq_url='http://www.'.str_replace('http://', '', $qq_url).'/';
				}else{
					$qq_url=base_url().'/';
				}
			}else{
				$qq_url='';
			}?>
				<a href="<?php echo $qq_url;?>account/login/" class="aw-user-name"><img src="<?php echo G_STATIC_URL; ?>/common/avatar-himg.png" alt="您的位置" title="您的位置"></a>
			<?php } else { ?>
				<a href="account/setting/profile/" class="aw-user-name"><img src="<?php echo G_STATIC_URL; ?>/common/avatar-himg.png" alt="您的位置" title="您的位置"></a>
			<?php }?>
			</dd>
		<?php }} ?>
		</div>
	</div>
</div>
<script type="text/javascript">
$(document).ready(function()
{
	$('.xboxs').hover(function()
	 {  
		$(this).find(".aw-user-name img").css("background","red");
		$(this).find('img').animate({width:54, marginTop:-5, marginLeft:-2}, 500);
	 }, function()
	 {
        $(this).find(".aw-user-name img").css("background","");
		$(this).find('img').animate({width:50, marginTop:0, marginLeft:0},300);
	 });
});
</script>